Courses / C++ Learning / Arrays
Arrays
Mark as CompleteStore multiple values in a single variable.
Array Basics
- Index starts at 0.
- Size is fixed at creation.
- Use loops to process items.
Key takeaway: arrays are fast but fixed in size.
Example
int scores[3] = {90, 85, 92};
int first = scores[0];
scores[1] = 88;
Ready to try it yourself?
Create an array and print each item.
← Functions
Loops →